<form id="timetable-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
    <div class="form-group">
        <div class="col-xs-12">
            <table class="table fieldlist" data-template="basictpl" data-name="timetable" id="first-table">
                <tr>
                    <td>{:__('站点名称')}</td>
                    <td>{:__('站点英文名称')}</td>
                    <td>{:__('到站时间')}</td>
                    <td>{:__('发车时间')}</td>
                    <td width="100"></td>
                </tr>
                <tr>
                    <td colspan="5"><a href="javascript:;" class="btn btn-sm btn-success btn-append"><i class="fa fa-plus"></i> {:__('Append')}</a></td>
                </tr>
            </table>
            <!--请注意实际开发中textarea应该添加个hidden进行隐藏-->
            <textarea name="timetable" class="form-control hide" cols="30" rows="5">{$listJson}</textarea>
            <script id="basictpl" type="text/html">
                <tr class="form-inline">
                    <td><input type="text" name="<%=name%>[<%=index%>][station]" class="form-control" size="15" value="<%=row.station%>" placeholder="站点名称"/></td>
                    <td><input type="text" name="<%=name%>[<%=index%>][station_en]" class="form-control" size="15" value="<%=row.station_en%>" placeholder="站点英文"/></td>
                    <td><input type="text" name="<%=name%>[<%=index%>][arrival_time]" class="form-control" size="15" value="<%=row.arrival_time%>" placeholder="到站时间"/></td>
                    <td><input type="text" name="<%=name%>[<%=index%>][departure_time]" class="form-control" size="15" value="<%=row.departure_time%>" placeholder="离站时间"/></td>
                    <td>
                        <!--下面的两个按钮务必保留-->
                        <span class="btn btn-sm btn-danger btn-remove"><i class="fa fa-times"></i></span>
                        <span class="btn btn-sm btn-primary btn-dragsort"><i class="fa fa-arrows"></i></span>
                    </td>
                </tr>
            </script>
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
        </div>
    </div>
</form>
